package com.epam.Accessories;

public class Toys extends Accessories {

    public Toys(String name, double price, AccessoriesQuality quality, String color) {
        super(name, price, quality);

        this.color = color;
    }

    private String color;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        if(color != null){
           this.color = color;
        }
    }

    @Override
    public String toString() {
        return "Toys for Aquarium [ Name: "+getName()+"; Price: "+getPrice()+
                "; Quality: "+ getQuality()+"; Color: "+getColor()+"]";
    }
}
